package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Advertisingtype implements Serializable {
    private String advrno;

    private String advrname;

    private String advrdescribe;

    private Integer advrstate;

    private static final long serialVersionUID = 1L;

    public String getAdvrno() {
        return advrno;
    }

    public void setAdvrno(String advrno) {
        this.advrno = advrno;
    }

    public String getAdvrname() {
        return advrname;
    }

    public void setAdvrname(String advrname) {
        this.advrname = advrname;
    }

    public String getAdvrdescribe() {
        return advrdescribe;
    }

    public void setAdvrdescribe(String advrdescribe) {
        this.advrdescribe = advrdescribe;
    }

    public Integer getAdvrstate() {
        return advrstate;
    }

    public void setAdvrstate(Integer advrstate) {
        this.advrstate = advrstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Advertisingtype other = (Advertisingtype) that;
        return (this.getAdvrno() == null ? other.getAdvrno() == null : this.getAdvrno().equals(other.getAdvrno()))
            && (this.getAdvrname() == null ? other.getAdvrname() == null : this.getAdvrname().equals(other.getAdvrname()))
            && (this.getAdvrdescribe() == null ? other.getAdvrdescribe() == null : this.getAdvrdescribe().equals(other.getAdvrdescribe()))
            && (this.getAdvrstate() == null ? other.getAdvrstate() == null : this.getAdvrstate().equals(other.getAdvrstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAdvrno() == null) ? 0 : getAdvrno().hashCode());
        result = prime * result + ((getAdvrname() == null) ? 0 : getAdvrname().hashCode());
        result = prime * result + ((getAdvrdescribe() == null) ? 0 : getAdvrdescribe().hashCode());
        result = prime * result + ((getAdvrstate() == null) ? 0 : getAdvrstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", advrno=").append(advrno);
        sb.append(", advrname=").append(advrname);
        sb.append(", advrdescribe=").append(advrdescribe);
        sb.append(", advrstate=").append(advrstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}